package com.xx.ems.system;

import javax.annotation.Resource;

import com.ndktools.javamd5.Mademd5;
import com.xx.ems.service.EquipmentCRUDService;
import com.xx.ems.service.EquipmentReceiveService;
import com.xx.ems.service.PermissionsService;
import com.xx.ems.service.UserCRUDService;
import com.xx.ems.service.UserLoginService;

/**
 * @author xxx
 * @date 2014-2-25
 * @version 1.0
 * 描述: Controller的基础类,实现公共的属性、方法
 */
public class BaseController {
	@Resource
	private UserLoginService userLoginService;
	@Resource
	private EquipmentCRUDService equipmentCRUDService;
	@Resource
	private PermissionsService permissionsService;
	@Resource
	private UserCRUDService userCRUDService;
	@Resource
	private EquipmentReceiveService equipmentReceiveService;
	
	public UserLoginService getUserLoginService() {
		return userLoginService;
	}
	public void setUserLoginService(UserLoginService userLoginService) {
		this.userLoginService = userLoginService;
	}
	public EquipmentCRUDService getEquipmentCRUDService() {
		return equipmentCRUDService;
	}
	public void setEquipmentCRUDService(EquipmentCRUDService equipmentCRUDService) {
		this.equipmentCRUDService = equipmentCRUDService;
	}
	public PermissionsService getPermissionsService() {
		return permissionsService;
	}
	public void setPermissionsService(PermissionsService permissionsService) {
		this.permissionsService = permissionsService;
	}
	public UserCRUDService getUserCRUDService() {
		return userCRUDService;
	}
	public void setUserCRUDService(UserCRUDService userCRUDService) {
		this.userCRUDService = userCRUDService;
	}
	public EquipmentReceiveService getEquipmentReceiveService() {
		return equipmentReceiveService;
	}
	public void setEquipmentReceiveService(
			EquipmentReceiveService equipmentReceiveService) {
		this.equipmentReceiveService = equipmentReceiveService;
	}
	/**
	 * 获取md5实例,提供加解密功能
	 */
	public Mademd5 getMd5() {
		return new Mademd5();
	}
}